package com.webmuseum.client;

import java.util.HashMap;

import com.google.gwt.user.client.ui.Widget;

public class XMLAssociationManager 
{
	
	private static XMLAssociationManager mInstance;
	private HashMap<String, String> mAssociationMap;
	
	
	private XMLAssociationManager()
	{
		mAssociationMap = new HashMap<String, String>();
	}
	
	public static XMLAssociationManager getInstance()
	{
		if(mInstance == null)
		{
			mInstance = new XMLAssociationManager();
		}
		
		return mInstance;
	}
	
	public void addAssociation(String aAssociationName, String aClassName)
	{
		mAssociationMap.put(aAssociationName, aClassName);
	}
	
	public String getClassName(String aAssociationName)
	{
		return mAssociationMap.get(aAssociationName);
	}
	
	public Widget createWidget(String aAssociationName)
	{
		Widget w = null;
		
		return w;
	}

}
